<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <jsp:include page="../../include/head.jsp"/>
</head>
<body class="gray-bg">
<div class="wrapper">
    <div class="row">
        <div class="col-sm-3">
            <div class="ibox ibox-body">
                <div class="ibox-title">
                    <h5>选择部门</h5>
                </div>
                <div class="ibox-content">
                    <div id="jstree"></div>
                </div>
            </div>
        </div>
        <div class="col-sm-9">
            <div class="ibox">
                <div class="ibox-body">
                    <div class="fixed-table-toolbar">
                        <div class="columns pull-left">
                            <shiro:hasPermission name="admin:user:add">
                                <button type="button"
                                        class="btn  btn-primary" onclick="add()">
                                    <i class="fa fa-plus hidden" aria-hidden="true"></i>添加
                                </button>
                            </shiro:hasPermission>
                            <shiro:hasPermission name="admin:user:batchRemove">
                                <button type="button"
                                        class="btn  btn-danger" onclick="batchRemove()">
                                    <i class="fa fa-trash hidden" aria-hidden="true"></i>删除
                                </button>
                            </shiro:hasPermission>
                        </div>
                        <div class="columns pull-right">
                            <button class="btn btn-success" onclick="reLoad()">查询</button>
                        </div>
                        <div class="columns pull-right col-md-2 nopadding">
                            <input id="nickname" type="text" class="form-control"
                                   placeholder="姓名">
                        </div>
                        <div class="columns pull-right col-md-2 nopadding">
                            <input id="username" type="text" class="form-control"
                                   placeholder="用户名">
                        </div>
                    </div>
                    <table id="exampleTable" data-mobile-responsive="true">
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div>
        <script type="text/javascript">
            var s_edit_h = 'hidden';
            var s_remove_h = 'hidden';
            var s_resetPwd_h = 'hidden';
            <shiro:hasPermission name="admin:user:edit">
            s_edit_h = '';
            </shiro:hasPermission>
            <shiro:hasPermission name="admin:user:remove">
            s_remove_h = '';
            </shiro:hasPermission>
            <shiro:hasPermission name="admin:user:resetPwd">
            s_resetPwd_h = '';
            </shiro:hasPermission>
        </script>
    </div>
</div>
<jsp:include page="../../include/footer.jsp"/>
<script type="text/javascript" src="app/resources/js/appjs/admin/user/user.js"></script>
</body>
</html>
